//
// Decompiled by Jadx - 373ms
//
package fg;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import fi.a;
import fi.w;
import java.util.ArrayList;

public final class g extends RecyclerView.Adapter<g$a> {
    public final ArrayList a;
    public final Activity b;
    public final w c;

    public g(ArrayList arrayList, Activity activity, w wVar) {
        ArrayList arrayList2 = new ArrayList<>();
        this.a = arrayList2;
        this.c = wVar;
        this.b = activity;
        arrayList2.addAll(arrayList);
    }

    public int getItemCount() {
        return this.a.size();
    }

    @Override
    public void onBindViewHolder(@NonNull g$a aeVar, int i) {
        a aVar2 = (a) this.a.get(i);
        aeVar.getClass();
        String key = aVar2.getKey();
        TextView textView = aeVar.a;
        textView.setText(r.g.w(textView, key));
        aeVar.b.setOnClickListener(new e(aeVar, this, 0));
        aeVar.itemView.setOnClickListener(new e(aeVar, this, 1));
    }

    public g$a onCreateViewHolder(ViewGroup viewGroup, int i) {
        return new a(LayoutInflater.from(viewGroup.getContext()).inflate(-2113142721, viewGroup, false));
    }


}
